<!-- 
	스터디를 관리하는 뷰
	벌금관리, 스터디 가입신청을 수락하고 거절 할 수있다.
	
	수정한 사항
		- 14.5.25 nav_main 삽입
		- fine, allow, memInfo page 생성 및 링크 연결
	수정할 사항
		- Uri 정해지면 manageStudy.js move() 의 link 페이지 변경.
 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
	<link rel="stylesheet" href="css/questudy.css" />
	
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script src="js/questudy.js" ></script>
	<script src="js/manageStudy/manageStudy.js"></script>
<title>Welcome to Questudy</title>
</head>
<%
	int studyId;
	boolean isOwn = false;
	try {
		studyId = ((Integer)request.getAttribute("studyId")).intValue();
		isOwn = (Boolean)request.getAttribute("isOwn");
	}catch(NullPointerException e) {
		System.out.println("manageStudy.jsp 에서 request객체의 studyId 와 isOwn속성이 null값으로 넘어옴.");
		e.printStackTrace();
		studyId = -1;
		isOwn = false;
	}
%>
<body>
	<jsp:include page="/nav/nav_main.jsp"></jsp:include>
	<jsp:include page="/nav/nav_study.jsp"></jsp:include>
	
	<div class="container firstDiv">
		<div class="col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3">
			<p class="text-center"><button name="fine" class="btn btn-default btn-lg btn-mng-study" onclick="move(this, '<%= studyId %>')">벌금</button></p>
			<% if(isOwn) { %>
				<p class="text-center"><button name="allowJoinStudy" class="btn btn-default btn-lg btn-mng-study" onclick="move(this, '<%= studyId %>')">스터디 신청 관리</button></p>
			<% } %>
			<p class="text-center"><button name="memInfo" class="btn btn-default btn-lg btn-mng-study" onclick="move(this, '<%= studyId %>')">멤버정보</button></p>
		</div>
	</div><!-- container -->
</body>

